home *** CD-ROM | disk | FTP | other *** search
- Path: chronicle.mti.sgi.com!austern
- From: hxh@jhk.com
- Newsgroups: comp.lang.c++,comp.std.c++
- Subject: Re: Explicit? What's that?
- Date: 22 Feb 1996 09:17:19 PST
- Organization: MindSpring Enterprises
- Approved: austern@isolde.mti.sgi.com
- Message-ID: <4gi4us$5o8@brickbat.mindspring.com>
- References: <4gb00j$2ne@charnel.ecst.csuchico.edu>
- Reply-To: hxh@jhk.com
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: 22 Feb 1996 16:17:32 GMT
- X-Newsreader: IBM NewsReader/2 v1.09
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMSylK0y4NqrwXLNJAQHv/QH8C61LRfTvJwm+r8Mxs4/KIjEbvyNgyL8J
- RQ4zMH3aJV/sL6sfZuWfOx32SDbZ8JscRsoTRhxz7IoLLEscWRT6qA==
- =A1BY
- Originator: austern@isolde.mti.sgi.com
-
- In <4gb00j$2ne@charnel.ecst.csuchico.edu>, mcelroy@ecst.CSUChico.EDU
- (James Robert McElroy) writes:
- |>Borland sent me an upgrade offer for C++ V. 5.0. Among
- |>the new features they say they support is "Explicit".
- |>No mention of what "Explicit" means is given.
- |>
- |>What is this critter?
-
- It is a new feature in evolving C++ language. It servers as a
- qualifier in front of the constructor to instruct the compiler not to
- do implicit type conversion which may cause some subtle bugs in code,
- especially in single argument constructor where a proxy class
- constructor is usually used to avoid such conversion.
- ---
- [ To submit articles: Try just posting with your newsreader. If that fails,
- use mailto:std-c++@ncar.ucar.edu
- FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
- Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-